﻿/*
 This file was create by Xusion at 01.06.2011
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace WeiBo.SinaAPI
{
    public static class SinaBase
    {
        public static oAuthSina oAuth
        {
            set { HttpContext.Current.Session["Sina_oAuth"] = value; }
            get { return HttpContext.Current.Session["Sina_oAuth"] != null ? (oAuthSina)HttpContext.Current.Session["Sina_oAuth"] : null; }
        }

        public static SinaMUsers User
        {
            set { HttpContext.Current.Session["Sina_User"] = value; }
            get { return HttpContext.Current.Session["Sina_User"] != null ? (SinaMUsers)HttpContext.Current.Session["Sina_User"] : null; }
        }

        public static void Clear()
        {
            oAuth = null;
            User = null;
        }
        public static SinaMComments Comment
        {
            set { HttpContext.Current.Session["Sina_Commemt"] = value; }
            get { return HttpContext.Current.Session["Sina_Commemt"] != null ? (SinaMComments)HttpContext.Current.Session["Sina_Commemt"] : null; }
        }
    }
}
